package com.supermap.dubbo.api.user.entity;

import java.io.Serializable;

@SuppressWarnings("serial")
public class BindUser implements Serializable {

    private int id;
    private String userId;
    private String loginName;
    private String password;
    private String nsrsbh;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNsrsbh() {
        return nsrsbh;
    }

    public void setNsrsbh(String nsrsbh) {
        this.nsrsbh = nsrsbh;
    }

    public void updateBindUser(BindUser bindUser){

        this.userId = bindUser.getUserId() == null ? this.userId : bindUser.getUserId();
        this.loginName = bindUser.getLoginName() == null ? this.loginName : bindUser.getLoginName();
        this.password = bindUser.getPassword() == null ? this.password : bindUser.getPassword();
    }
}
